﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ledict.ConditionExtract.DAL;
using System.Data;
using Ledict.ConditionExtract.Model;
using Ledict.ConditionExtract.Common;
namespace Ledict.ConditionExtract.BLL
{
    public class CaseCauseInferConditionBLL
    {

        CaseCauseInferConditionDAL dal = new CaseCauseInferConditionDAL();
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public bool Add(SYSCaseCauseInferCondition model)
        {
            return dal.Add(model);
        }

        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(SYSCaseCauseInferCondition Model)
        {
            return dal.Exists(Model);
        }


        /// <summary>
        /// 更新一条数据
        /// </summary>
        public bool Update(SYSCaseCauseInferCondition Model)
        {
            return dal.Update(Model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(string IR_ID)
        {

            return dal.Delete(IR_ID);

        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataTable GetList(string CC_ID)
        {
            return dal.GetList(CC_ID);

        }

        public DataTable GetOneData(string IR_ID)
        {
            return dal.GetOneData(IR_ID);


        }

    }
    
}
